package com.example.warehouse.service;


import com.example.warehouse.dto.AssignRoleDto;
import com.example.warehouse.entity.User;
import com.example.warehouse.page.Page1;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

@Transactional
public interface userService {

    User LoginUser(String usercode);


    //分页查询用户
    Page1 PageQuery(@Param("page1") Page1 page1,@Param("user") User user);

    //添加新用户
    void addUser(User user);

    boolean upUserState(User user);

    boolean deleteById(Integer userId);

    boolean updateUserById(String userName , int userId, Date updateTime);

    boolean updateUserPwd(Integer userId, String originPwd);

    //得到行数

    void assignRoleDtoDemo(AssignRoleDto assignRoleDto);


    List<Integer> findUserAuth(Integer userId);


}
